/**
   http://oj.noi.cn/oj/#main/show/1009
 */
#include<stdio.h> 
int main()
{
	int male = 0;
	int female = 0;
	int total = 0;
	
	scanf("%d %d", &male, &female);
	total = male + female;
	if ( total < 10 ) 
	{
		printf("water");
	}
	else
	{
		if ( male > female)	
		{
			printf("tree");	
		}
		else
		{
			printf("tea");
		}
	}
	return 0;
}
